package azku.entitys;

import org.json.JSONException;
import org.json.JSONObject;

public class EItemAssess {
	public static final String KEY_ASSESSID = "assessid";
	public static final String KEY_USERID = "userid";
	public static final String KEY_ITEMID = "itemid";
	public static final String KEY_ASSESS = "assess";
	public static final String KEY_DATE = "date";
	public static final String KEY_INDEX = "index";
	public static final String KEY_SCORE = "score";
	public static final String KEY_VINDEX = "vindex";

	private int mAssessID;
	private int mUserID;
	private int mItemID;
	private String mAssess;
	private String mDate;
	private int mIndex;
	private int mScore;
	private int mVindex;

	public int getAssessID() {
		return this.mAssessID;
	}

	public int getUserID() {
		return this.mUserID;
	}

	public int getItemID() {
		return this.mItemID;
	}

	public String getAssess() {
		return this.mAssess;
	}

	public String getDate() {
		return this.mDate;
	}

	public int getIndex() {
		return this.mIndex;
	}

	public int getScore() {
		return this.mScore;
	}

	public int getVindex() {
		return this.mVindex;
	}

	public void setAssessID(int assessID) {
		this.mAssessID = assessID;
	}

	public void setUserID(int UserID) {
		this.mUserID = UserID;
	}

	public void setItemID(int ItemID) {
		this.mItemID = ItemID;
	}

	public void setAssess(String Assess) {
		this.mAssess = Assess;
	}

	public void setDate(String Date) {
		this.mDate = Date;
	}

	public void setIndex(int Index) {
		this.mIndex = Index;
	}

	public void setScore(int Score) {
		this.mScore = Score;
	}

	public void setVindex(int Vindex) {
		this.mVindex = Vindex;
	}

	public void bindParams(JSONObject obj) {
		if (obj == null)
			return;
		try {
			this.setAssess(obj.getString(KEY_ASSESS));
			this.setAssessID(obj.getInt(KEY_ASSESSID));
			this.setDate(obj.getString(KEY_DATE));
			this.setIndex(obj.getInt(KEY_INDEX));
			this.setItemID(obj.getInt(KEY_ITEMID));
			this.setScore(obj.getInt(KEY_SCORE));
			this.setUserID(obj.getInt(KEY_USERID));
			this.setVindex(obj.getInt(KEY_VINDEX));
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}
}
